package com.hp.dao;

import com.hp.pojo.FriendVerification;
import com.hp.pojo.GroupVerification;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface GroupVerificationMapper {

    public int addVerification(GroupVerification groupVerification);

    public int delVerification(int userId);

    public List<GroupVerification> selectAllByUserId(int userId);

    // map: {fromId, toId, verificationStatus, verificationTime, groupId}
    public int updateVerificationOfInvite(Map map);

    // map: {fromId, verificationStatus, verificationTime, groupId}
    public int updateVerificationOfApply(Map map);

    // userId, fromId, groupId
    public List<GroupVerification> selectGroupVerifications(GroupVerification groupVerification);

}
